home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / awe2-0_1.lha / awe2-0.1 / Src / RCS / IndexedThreadContainer.h,v < prev    next >
Text File  |  1989-02-23  |  1KB  |  62 lines

  1. head     3.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    grunwald:3.2; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 3.2
  10. date     89.02.20.15.35.08;  author grunwald;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19.  
  20. 3.2
  21. log
  22. @Start using Gnu library heaps for schedulers
  23. @
  24. text
  25. @// This may look like C code, but it is really -*- C++ -*-
  26. // 
  27. // Copyright (C) 1988 University of Illinois, Urbana, Illinois
  28. //
  29. // written by Dirk Grunwald (grunwald@@cs.uiuc.edu)
  30. //
  31. #ifndef THREADCONTAINERH
  32. #define THREADCONTAINERH
  33.  
  34. #include "Awesime.h"
  35.  
  36. class Thread;
  37.  
  38. class IndexedThreadContainer : {
  39.     public :
  40.  
  41.     IndexedThreadContainer();
  42.  
  43.     virtual void add( Thread* );
  44.     virtual void add( double when, Thread* );
  45.     virtual void add( int when, Thread* );
  46.  
  47.     virtual void addIndexed( int, Thread* );
  48.     virtual void addIndexed( int, double when, Thread* );
  49.     virtual void addIndexed( int when, Thread* );
  50.  
  51.     virtual Thread* remove();
  52.     virtual Thread* remove(Thread* toRemove);
  53.  
  54.     virtual bool isEmpty();
  55.     virtual unsigned size();
  56. };
  57.  
  58.  
  59.  
  60. #endif THREADCONTAINERH
  61. @
  62.